package com.hengxinguotong.baselibrary.dialog;

import android.app.AlertDialog;
import android.content.Context;
import android.os.Bundle;

import com.hengxinguotong.baselibrary.R;

/**
 * Created by hjz on 2018/4/11.
 */

public class WaitDialog extends AlertDialog
{
    public WaitDialog(Context context)
    {
        super(context, R.style.dialog_no_action_bar);
    }

    protected WaitDialog(Context context, boolean cancelable, OnCancelListener cancelListener)
    {
        super(context, cancelable, cancelListener);
    }

    protected WaitDialog(Context context, int themeResId)
    {
        super(context, themeResId);
    }

    @Override
    protected void onCreate(Bundle savedInstanceState)
    {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.dialog_wait);

        setCancelable(false);
        setCanceledOnTouchOutside(false);
    }
}
